package com.aaa.bbb.mymaintain.form;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import java.time.LocalDate;

@Data
public class IssueEmployeeUpdateForm {
    public interface Base{
    }
    public interface FindbyId {
    }
    public interface Update extends Base {
    }

    @NotNull(groups = {IssueEmployeeUpdateForm.Update.class, IssueEmployeeUpdateForm.FindbyId.class})
    @Length(max = 36, groups = {IssueEmployeeUpdateForm.Update.class, IssueEmployeeUpdateForm.FindbyId.class})
    private String issue_id;

    @NotNull(groups = {IssueEmployeeUpdateForm.Update.class, IssueEmployeeUpdateForm.FindbyId.class})
    @Length(max = 36, groups = {IssueEmployeeUpdateForm.Update.class, IssueEmployeeUpdateForm.FindbyId.class})
    private String state;

    @Length(max = 255, groups = {IssueEmployeeUpdateForm.Update.class, IssueEmployeeUpdateForm.FindbyId.class})
    private String reason;
}
